﻿using System.Collections.Generic;
using Bdcs.Application.Mappers.Dto;
using Bdcs.Core.Entity;

namespace Bdcs.Application.Services.IServices
{
    /// <summary>
    /// 围栏时段管理
    /// </summary>
    public interface IRouteTimeService
    {
        /// <summary>
        /// 新增围栏时段
        /// </summary>
        /// <param name="routeTimeInput"></param>
        /// <returns></returns>
        public int Add(RouteTimeInput routeTimeInput);


        /// <summary>
        /// 删除围栏时段数据
        /// </summary>
        /// <param name="rkey"></param>
        /// <returns></returns>
        public DevRouteTimeMod delete(string rkey);



        /// <summary>
        /// 围栏时间段-分页查询
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="userId">用户id</param>
        /// <returns></returns>
        public PagedList<RouteTimeDto> List(int pageIndex, int pageSize, string userId);

        /// <summary>
        /// 绑定设备
        /// </summary>
        /// <param name="rkey"></param>
        /// <param name="devList"></param>
        /// <returns></returns>
        public int SaveBindDev(string rkey, string devList);

        /// <summary>
        /// 获取给定围栏所绑定的设备列表
        /// </summary>
        /// <param name="rkey"></param>
        /// <returns></returns>
        public string GetDevChecked(string rkey);
    }
}